package com.momoauth.common.security.annotation;

import com.momoauth.common.security.enumeration.Logical;

import java.lang.annotation.*;

/**
 * 指定角色权限
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface RequiresRoles {
    String[] value() default {};
    Logical logical() default Logical.OR;
}
